package net.web.belerofont.controller;

import java.util.Map;

import net.web.belerofont.action.Action;

import org.apache.log4j.Logger;

class ActionFlow {
	
	public final Logger LOG = Logger.getLogger(ActionFlow.class);
	
	private ConfigReader config;
	
	public static ActionFlow instance(ConfigReader config) {
		ActionFlow flow = new ActionFlow();
		flow.config = config;
		return flow;
	}
	 
	public Action getAction(String uri) {
		return config.getActions().get(uri);
	}
	 
	public Map<String, Action> getActionMap() {
		return config.getActions();
	}
	 
}
 
